package com.yidi.system.service;

import com.yidi.common.core.domain.AjaxResult;
import com.yidi.common.core.domain.entity.SysDictData;
import com.yidi.common.core.domain.entity.SysDictType;
import com.yidi.common.core.service.BaseService;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author ：Xn
 * @ClassName: SysDictTypeService
 * @date ：2021-10-19 14:36
 * @describe ：
 */
public interface SysDictTypeService extends BaseService<SysDictType> {

    Page<SysDictType> findByPage(Integer pageNo, Integer pageSize, SysDictType dictType);

    String checkDictTypeUnique(SysDictType dict);

    void insertDictType(SysDictType dict);

    void updateDictType(SysDictType dictType);

    AjaxResult deleteDictTypeByIds(Long[] ids);

    List<SysDictData> selectDictDataByType(String dictType);

    void resetDictCache();

    void clearDictCache();

    void loadingDictCache();
}
